package edu.kjxy.day02Synchronized.synLockIn_2;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 20:06
 */
public class Main {
    public int i = 10;

    synchronized public void operateIMainMethod() {
        try {
            i--;
            System.out.println("main print i=" + i);
            Thread.sleep(100);
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
